package pt.utl.ist.project_ccu.android_libs;

import java.io.Serializable;

public class Tag implements Serializable {

	private static final long serialVersionUID = 1L;
	String _tagName;
	String _tagType;
	
	public Tag(String tagType, String tagName) {
		_tagName = tagName;
		_tagType = tagType;
	}
	
	public String getTagName() {
		return _tagName;
	}

	public String getTagType() {
		return _tagType;
	}

	public void setTagName(String _tagName) {
		this._tagName = _tagName;
	}

	public void setTagType(String _tagType) {
		this._tagType = _tagType;
	}
	
	@Override
	public boolean equals(Object other){
	    if (other == null) return false;
	    if (other instanceof Tag) {
	    	return ((Tag) other).getTagName().equals(_tagName)
	    			&& ((Tag) other).getTagType().equals(_tagType);
	    }
	    return false;
	}
}
	
	
